package com.zed.code.model;

import java.io.Serializable;

/**
 * T_PricePartDesc
 * @author 
 */
public class TPricepartdesc implements Serializable {
    private Integer id;

    private String stationid;

    private String equipmentid;

    private String timedesc;

    private Float slotelecprice;

    private Float slotserviceprice;

    private Float slotprice;

    private String slotflag;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStationid() {
        return stationid;
    }

    public void setStationid(String stationid) {
        this.stationid = stationid;
    }

    public String getEquipmentid() {
        return equipmentid;
    }

    public void setEquipmentid(String equipmentid) {
        this.equipmentid = equipmentid;
    }

    public String getTimedesc() {
        return timedesc;
    }

    public void setTimedesc(String timedesc) {
        this.timedesc = timedesc;
    }

    public Float getSlotelecprice() {
        return slotelecprice;
    }

    public void setSlotelecprice(Float slotelecprice) {
        this.slotelecprice = slotelecprice;
    }

    public Float getSlotserviceprice() {
        return slotserviceprice;
    }

    public void setSlotserviceprice(Float slotserviceprice) {
        this.slotserviceprice = slotserviceprice;
    }

    public Float getSlotprice() {
        return slotprice;
    }

    public void setSlotprice(Float slotprice) {
        this.slotprice = slotprice;
    }

    public String getSlotflag() {
        return slotflag;
    }

    public void setSlotflag(String slotflag) {
        this.slotflag = slotflag;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TPricepartdesc other = (TPricepartdesc) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStationid() == null ? other.getStationid() == null : this.getStationid().equals(other.getStationid()))
            && (this.getEquipmentid() == null ? other.getEquipmentid() == null : this.getEquipmentid().equals(other.getEquipmentid()))
            && (this.getTimedesc() == null ? other.getTimedesc() == null : this.getTimedesc().equals(other.getTimedesc()))
            && (this.getSlotelecprice() == null ? other.getSlotelecprice() == null : this.getSlotelecprice().equals(other.getSlotelecprice()))
            && (this.getSlotserviceprice() == null ? other.getSlotserviceprice() == null : this.getSlotserviceprice().equals(other.getSlotserviceprice()))
            && (this.getSlotprice() == null ? other.getSlotprice() == null : this.getSlotprice().equals(other.getSlotprice()))
            && (this.getSlotflag() == null ? other.getSlotflag() == null : this.getSlotflag().equals(other.getSlotflag()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStationid() == null) ? 0 : getStationid().hashCode());
        result = prime * result + ((getEquipmentid() == null) ? 0 : getEquipmentid().hashCode());
        result = prime * result + ((getTimedesc() == null) ? 0 : getTimedesc().hashCode());
        result = prime * result + ((getSlotelecprice() == null) ? 0 : getSlotelecprice().hashCode());
        result = prime * result + ((getSlotserviceprice() == null) ? 0 : getSlotserviceprice().hashCode());
        result = prime * result + ((getSlotprice() == null) ? 0 : getSlotprice().hashCode());
        result = prime * result + ((getSlotflag() == null) ? 0 : getSlotflag().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", stationid=").append(stationid);
        sb.append(", equipmentid=").append(equipmentid);
        sb.append(", timedesc=").append(timedesc);
        sb.append(", slotelecprice=").append(slotelecprice);
        sb.append(", slotserviceprice=").append(slotserviceprice);
        sb.append(", slotprice=").append(slotprice);
        sb.append(", slotflag=").append(slotflag);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}